package com.learn.springboot.user.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.learn.springboot.user.mapper.SysUserMapper;
import com.learn.springboot.user.model.SysUser;
import com.learn.springboot.user.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@SuppressWarnings("unused")
	private static final Logger logger=LoggerFactory.getLogger(UserServiceImpl.class);
	
	@Autowired
	private SysUserMapper sysUserMapper;
	
	@Override
	public SysUser getUserInfo(Long id) {
		SysUser user = sysUserMapper.getSysUserById(id);
		return user;
	}

}
